package com.vains.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;

/**
 * 权限载体
 * @author vains
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AuthorityDto对象", description="权限载体")
public class AuthorityDto implements Serializable, GrantedAuthority {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "权限URL")
    private String authority;

}
